package model

import "strconv"

type Post struct {
	UserLink       string
	UserName       string
	PostLink       string
	PostTitle      string
	ClickNumber    int
	PostingTime    string
	ForumLink      string
	ForumName      string
	CommentsNumber int
}

func (p Post) String() string {
	return "Post{" +
		"UserLink: " + p.UserLink + ", " +
		"UserName: " + p.UserName + ", " +
		"PostLink: " + p.PostLink + ", " +
		"PostTitle: " + p.PostTitle + ", " +
		"ClickNumber: " + strconv.Itoa(p.ClickNumber) + ", " +
		"PostingTime: " + p.PostingTime + ", " +
		"ForumLink: " + p.ForumLink + ", " +
		"ForumName: " + p.ForumName + ", " +
		"CommentsNumber: " + strconv.Itoa(p.CommentsNumber) +
		"}"
}
